package fudan.se.project.repository.entity.sysrole;

import fudan.se.project.domain.sysrole.SystemAuthority;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

/**
 * @author Gao Longchao
 */
@Repository
public interface SystemAuthorityRepository extends CrudRepository<SystemAuthority, Long> {
    @Query("from SystemAuthority where authority = :authority")
    SystemAuthority findByAuthority(SystemAuthority.Authority authority);
}
